<?php
namespace  Backend\Model;
use Think\Model;


class  RegistrationModel extends  Model
{
    protected $_validate = array(

        array('username', '1,30', '昵称的值最长不能超过 30 个字符！', 2, 'length', 3),
        array('password', 'require', '密码不能为空！', 1, 'regex', 3),
        array('password', '6,20', '密码必须是6-20位字符！', 1, 'length', 3)

    );
}